package com.zqp.validator;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
 * 
 * @author zqp
 * @discript 
 *
 * @date 2017年12月19日
 */
public class MyConstraintValidator implements ConstraintValidator<MyConstant, Object> {

	@Override
	public void initialize(MyConstant constraintAnnotation) {
		System.out.println("my validatro init");
		
	}

	@Override
	public boolean isValid(Object value, ConstraintValidatorContext context) {
		System.out.println("value="+ value);
	
		return false;
	}

}
